import { WidgetTypeEnum } from "@/enum/WidgetType";
import { getName } from "@/components/x6/utils";
import type { BasicSettingsConfig } from "@/components/x6/WidgetBasicSettings";
import WidgetBasicSettings from "@/components/x6/WidgetBasicSettings";

export type TextSettingsConfig = BasicSettingsConfig;

export default class TextSettings extends WidgetBasicSettings<TextSettingsConfig> {
  static widgetType = WidgetTypeEnum.Text;
  initSettings = (): TextSettingsConfig => ({
    width: 110,
    height: 50,
    name: getName("文本"),
  });
}
